package com.lwz.laboratory.dao;

import com.lwz.laboratory.entity.Post;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PostMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Post record);

    int insertSelective(Post record);

    Post selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Post record);

    int updateByPrimaryKey(Post record);
    List<Post> findbyplanid(@Param("planid") String planid);
    Post findbypostid(@Param("postid") String postid);

//查看报名信息
    List<Post> selectSignupPost(@Param("planid") String planid);
    Post toface(@Param("signid") Integer postid);

}